package com.wb.system.service.impl;

import com.wb.common.vo.WwwInfoModelVO;
import com.wb.system.domain.WwwInfoModel;
import com.wb.system.mapper.WwwInfoMapper;
import com.wb.system.service.IWwwInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class IWwwInfoServiceImpl implements IWwwInfoService {

    @Autowired
    private WwwInfoMapper wwwInfoMapper;

    @Override
    public List<WwwInfoModel> selectWwwInfoList(WwwInfoModelVO wwwInfoModelVO) {
        return wwwInfoMapper.selectWwwInfoList(wwwInfoModelVO);
    }

    @Override
    public void save(WwwInfoModel wwwInfoModel) {
        wwwInfoMapper.save(wwwInfoModel);
    }

    @Override
    public WwwInfoModel getWwwInfoDetail(Long id) {
        return wwwInfoMapper.getWwwInfoDetail(id);
    }

    @Override
    public void updateWwwInfoById(WwwInfoModel wwwInfoModel) {
        wwwInfoMapper.updateWwwInfoById(wwwInfoModel);
    }

    @Override
    public void batchDeleteWwwInfo(List<Long> ids) {
        wwwInfoMapper.batchDeleteWwwInfo(ids);
    }

    @Override
    public void removeWwwInfoById(Long id) {
        wwwInfoMapper.removeWwwInfoById(id);
    }

    @Override
    public void removeWwwInfoByIds(List<Long> ids) {
        if (ids != null && ids.size() > 0) {
            for (Long id : ids) {
                wwwInfoMapper.removeWwwInfoById(id);
            }
        }
    }

    @Override
    public void updateStatus(WwwInfoModel entity) {
        wwwInfoMapper.updateStatus(entity);
    }

    @Override
    public WwwInfoModel getWwwInfoLeast() {
        return wwwInfoMapper.getWwwInfoLeast();
    }
}
